//1.引入路由
import {createRouter, createWebHistory} from "vue-router"
import Login from "@/components/Login.vue";
import Main from  "@/components/Main.vue";

//创建 路由实例 并接收
let router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:"/",
            component:Login
        },
        {
            path:"/login",
            component:Login
        },
        {
            path:"/main",
            name:'main',
            component:Main
        }
    ]
})


//暴露 路由对象
export default router;